﻿namespace AgileBoard.Infrastructure.Data.Repositories
{
    using System.Collections.Generic;
    using Domain;
    using Domain.DataInterfaces;
    using SharpArch.Data.NHibernate;

    public class FeelingsRepository : Repository<Feelings>, IFeelingsRepository
    {
        #region IFeelingsRepository Members

        public IList<Feelings> FindByUser(string userId)
        {
            return Session.CreateQuery("from UserMood where UserID = :userId")
                .SetParameter("userId", userId)
                .List<Feelings>();
        }

        #endregion

    }
}